﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013CF RID: 5071
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyBuildDiyCsReq : IMessage<TrainPartyBuildDiyCsReq>, IMessage, IEquatable<TrainPartyBuildDiyCsReq>, IDeepCloneable<TrainPartyBuildDiyCsReq>, IBufferMessage
	{
		// Token: 0x17003FF0 RID: 16368
		// (get) Token: 0x0600E316 RID: 58134 RVA: 0x0025F2D3 File Offset: 0x0025D4D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyBuildDiyCsReq> Parser
		{
			get
			{
				return TrainPartyBuildDiyCsReq._parser;
			}
		}

		// Token: 0x17003FF1 RID: 16369
		// (get) Token: 0x0600E317 RID: 58135 RVA: 0x0025F2DA File Offset: 0x0025D4DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyBuildDiyCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003FF2 RID: 16370
		// (get) Token: 0x0600E318 RID: 58136 RVA: 0x0025F2EC File Offset: 0x0025D4EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyBuildDiyCsReq.Descriptor;
			}
		}

		// Token: 0x0600E319 RID: 58137 RVA: 0x0025F2F3 File Offset: 0x0025D4F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildDiyCsReq()
		{
		}

		// Token: 0x0600E31A RID: 58138 RVA: 0x0025F2FC File Offset: 0x0025D4FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildDiyCsReq(TrainPartyBuildDiyCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this.diyDynamicId_ = other.diyDynamicId_;
			this.diceSlotId_ = other.diceSlotId_;
			this.hEMODCFENHP_ = other.hEMODCFENHP_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E31B RID: 58139 RVA: 0x0025F350 File Offset: 0x0025D550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildDiyCsReq Clone()
		{
			return new TrainPartyBuildDiyCsReq(this);
		}

		// Token: 0x17003FF3 RID: 16371
		// (get) Token: 0x0600E31C RID: 58140 RVA: 0x0025F358 File Offset: 0x0025D558
		// (set) Token: 0x0600E31D RID: 58141 RVA: 0x0025F360 File Offset: 0x0025D560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17003FF4 RID: 16372
		// (get) Token: 0x0600E31E RID: 58142 RVA: 0x0025F369 File Offset: 0x0025D569
		// (set) Token: 0x0600E31F RID: 58143 RVA: 0x0025F371 File Offset: 0x0025D571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiyDynamicId
		{
			get
			{
				return this.diyDynamicId_;
			}
			set
			{
				this.diyDynamicId_ = value;
			}
		}

		// Token: 0x17003FF5 RID: 16373
		// (get) Token: 0x0600E320 RID: 58144 RVA: 0x0025F37A File Offset: 0x0025D57A
		// (set) Token: 0x0600E321 RID: 58145 RVA: 0x0025F382 File Offset: 0x0025D582
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiceSlotId
		{
			get
			{
				return this.diceSlotId_;
			}
			set
			{
				this.diceSlotId_ = value;
			}
		}

		// Token: 0x17003FF6 RID: 16374
		// (get) Token: 0x0600E322 RID: 58146 RVA: 0x0025F38B File Offset: 0x0025D58B
		// (set) Token: 0x0600E323 RID: 58147 RVA: 0x0025F393 File Offset: 0x0025D593
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HEMODCFENHP
		{
			get
			{
				return this.hEMODCFENHP_;
			}
			set
			{
				this.hEMODCFENHP_ = value;
			}
		}

		// Token: 0x0600E324 RID: 58148 RVA: 0x0025F39C File Offset: 0x0025D59C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyBuildDiyCsReq);
		}

		// Token: 0x0600E325 RID: 58149 RVA: 0x0025F3AC File Offset: 0x0025D5AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyBuildDiyCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.DiyDynamicId == other.DiyDynamicId && this.DiceSlotId == other.DiceSlotId && this.HEMODCFENHP == other.HEMODCFENHP && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E326 RID: 58150 RVA: 0x0025F418 File Offset: 0x0025D618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.DiyDynamicId != 0U)
			{
				num ^= this.DiyDynamicId.GetHashCode();
			}
			if (this.DiceSlotId != 0U)
			{
				num ^= this.DiceSlotId.GetHashCode();
			}
			if (this.HEMODCFENHP)
			{
				num ^= this.HEMODCFENHP.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E327 RID: 58151 RVA: 0x0025F4A2 File Offset: 0x0025D6A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E328 RID: 58152 RVA: 0x0025F4AA File Offset: 0x0025D6AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E329 RID: 58153 RVA: 0x0025F4B4 File Offset: 0x0025D6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DiyDynamicId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.DiyDynamicId);
			}
			if (this.HEMODCFENHP)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.HEMODCFENHP);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.AreaId);
			}
			if (this.DiceSlotId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.DiceSlotId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E32A RID: 58154 RVA: 0x0025F548 File Offset: 0x0025D748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.DiyDynamicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiyDynamicId);
			}
			if (this.DiceSlotId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiceSlotId);
			}
			if (this.HEMODCFENHP)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E32B RID: 58155 RVA: 0x0025F5C4 File Offset: 0x0025D7C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyBuildDiyCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.DiyDynamicId != 0U)
			{
				this.DiyDynamicId = other.DiyDynamicId;
			}
			if (other.DiceSlotId != 0U)
			{
				this.DiceSlotId = other.DiceSlotId;
			}
			if (other.HEMODCFENHP)
			{
				this.HEMODCFENHP = other.HEMODCFENHP;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E32C RID: 58156 RVA: 0x0025F63C File Offset: 0x0025D83C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E32D RID: 58157 RVA: 0x0025F648 File Offset: 0x0025D848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 32U)
					{
						this.DiyDynamicId = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.HEMODCFENHP = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.DiceSlotId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040059DC RID: 23004
		private static readonly MessageParser<TrainPartyBuildDiyCsReq> _parser = new MessageParser<TrainPartyBuildDiyCsReq>(() => new TrainPartyBuildDiyCsReq());

		// Token: 0x040059DD RID: 23005
		private UnknownFieldSet _unknownFields;

		// Token: 0x040059DE RID: 23006
		public const int AreaIdFieldNumber = 10;

		// Token: 0x040059DF RID: 23007
		private uint areaId_;

		// Token: 0x040059E0 RID: 23008
		public const int DiyDynamicIdFieldNumber = 4;

		// Token: 0x040059E1 RID: 23009
		private uint diyDynamicId_;

		// Token: 0x040059E2 RID: 23010
		public const int DiceSlotIdFieldNumber = 14;

		// Token: 0x040059E3 RID: 23011
		private uint diceSlotId_;

		// Token: 0x040059E4 RID: 23012
		public const int HEMODCFENHPFieldNumber = 8;

		// Token: 0x040059E5 RID: 23013
		private bool hEMODCFENHP_;
	}
}
